package com.service.component.log.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.service.component.common.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "操作日志实体类")
@TableName(value = "sys_operate_log")
@EqualsAndHashCode(callSuper = true)
/**
 * @author ：Calvin
 * @date ：Created in 2021/7/16 14:35
 * @description：操作日志实体类
 * @modified By：
 * @version: 1.0.0$
 */
public class SysOperate extends CommonEntity{

    /**
     * 操作人员
     */
    @TableField
    @ApiModelProperty(value = "操作人员")
    @NotNull(message = "操作人员不能为空")
    private String operateor;

    /**
     * 操作应用id
     */
    @TableField(value = "OPERATE_APPLICATION_ID")
    @ApiModelProperty(value = "操作应用id")
    @NotNull(message = "操作应用id不能为空")
    private String operateApplicationId;

    /**
     * 操作方法
     */
    @ApiModelProperty(value = "操作方法")
    @TableField(value = "OPERATE_METHOD")
    @NotNull(message = "操作方法不能为空")
    private String operateMethod;

    /**
     * 操作描述
     */
    @ApiModelProperty(value = "操作描述")
    @TableField(value = "OPERATE_DESCRPTION")
    private String operateDescrption;

    /**
     * 操作类型
     */
    @ApiModelProperty(value = "操作类型")
    @TableField(value = "OPERATE_TYPE")
    @NotNull(message = "操作类型不能为空")
    private String operateType;

    /**
     * 请求参数
     */
    @ApiModelProperty(value = "请求参数")
    @TableField(value = "PARAMS")
    private String params;

    /**
     * 返回结果
     */
    @ApiModelProperty(value = "返回结果")
    @TableField(value = "OPERATE_RESULT")
    private String operateResult;

    /**
     * 操作IP
     */
    @ApiModelProperty(value = "操作IP")
    @NotNull(message = "操作IP不能为空")
    @TableField(value = "OPERATE_IP")
    private String operateIp;

}
